import {requestStationAPI} from "@/utils/request.js"
//导出login方法
export function InitStationCount(){
    return requestStationAPI.get("/management/station/count/index")
}
export function InitChargingCount(){
    return requestStationAPI.get("/management/charging/record/count")
}

export function ChargingRecordList(data){
    return requestStationAPI.post("/management/charging/record/list",data)
}

export function StationList(data){
    return requestStationAPI.post("/management/station/page",data)
}

export function StationAdd(data){
    return requestStationAPI.post("/management/station/add",data)
}

export function StationEdit(data){
    return requestStationAPI.post("/management/station/update",data)
}
export function StationDetailEdit(data){
    return requestStationAPI.post("/management/station/update/detail",data)
}
export function StationBind(data){
    return requestStationAPI.post("/management/station/bind",data)
}

export function StationStop(data){
    return requestStationAPI.post("/management/station/stop",data)
}

export function StationStart(data){
    return requestStationAPI.post("/management/station/start",data)
}


/**
 * 充电枪相关操作API
 */
export function GunList(data){
    return requestStationAPI.post("/management/station/gun/list",data)
}

export function GunAdd(data){
    return requestStationAPI.post("/management/station/gun/add",data)
}

export function GunEdit(data){
    return requestStationAPI.post("/management/station/gun/update",data)
}

export function GunOnline(data){
    return requestStationAPI.post("/management/station/gun/online",data)
}

export function GunBind(data){
    return requestStationAPI.post("/management/station/gun/bind",data)
}
